package com.linewell.license.demo.designPattern.createPattern.SingletonPattern;

/**
 * @Title: springBootDemo
 * @description:
 * @author: hyuhuang@linewell.com
 * @since:2019/11/22
 */
public class SingletonPattern {
    public static void main(String[] args) {
        Book book = Book.getSingletonBook();
        Pen p = Pen.getSingleton();
        Mouse mouse = Mouse.getInstance();
        EnumSingleton enumSingleton = EnumSingleton.INSTANCE;
    }
}
